package com.akk.action;

import com.akk.business.SynthesisFinancialBusiness;
import com.akk.utils.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * 综合金融
 */
@RestController
@RequestMapping("/thmlfApi/synthesisFinancial")
@Api(value = "综合金融", description = "综合金融接口")
public class SynthesisFinancialAction {

    @Autowired
    private SynthesisFinancialBusiness synthesisFinancialBusiness;

    @RequestMapping(value = "/{appId}/list", method = RequestMethod.GET)
    @ApiOperation(value = "获取首页列表数据")
    public RestResponse listData(@PathVariable String appId) {
        return RestResponse.build(synthesisFinancialBusiness.findByAppId(appId));
    }

}
